package com.design.softwaredesign.mapper;

import com.design.softwaredesign.entity.*;
import com.design.softwaredesign.front.GoodInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodMapper {
    public List<GoodCategory> getGoodsCategory();

    public void addGood(Good good);

    public void addGoodImages(GoodImages goodImages);

    public void addImage(String goodId, String url);

    public GoodImages selectGoodImages(String goodId);

    public void updateImages(GoodImages goodImages);

    public List<Good> getGoodList(Integer goodCategoryId, String query);

    public Good selectGoodById(String goodId);

    public void updateGoodInfo(GoodInfo goodInfo);

    public int updateGoodState(Good good);

    public int deleteGoodInfoById(String goodId);

    List<User> getGoodInIwantBuyer(String goodId);

    public void addTransationLog(TransactionLog transactionLog);
}
